package com.cskaoyan.demo6.servlet;

import com.cskaoyan.demo6.common.CommonServlet;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/header/*")
public class HeaderServlet extends CommonServlet {
    public void add(HttpServletRequest request, HttpServletResponse response) {
        response.addHeader("cskaoyan","cskaoyan.com");
        response.addHeader("token","123456");
        response.setContentType("text/html;charset=utf-8");
    }
}
